<?php

namespace App\Modules\Admin\Http\Controllers\Mall;

use App\Modules\Admin\Http\Controllers\BaseController;
use App\Modules\Admin\Http\Requests\Mall\GoodsRuleRequest;
use App\Modules\Admin\Services\Mall\GoodsRuleServices;
use Illuminate\Http\JsonResponse;

class GoodsRuleController extends BaseController
{
    public function __construct(GoodsRuleServices $service)
    {
        $this->service = $service;
    }

    public function create(GoodsRuleRequest $request): JsonResponse
    {
        return $this->createService($request);
    }
    public function update(GoodsRuleRequest $request): JsonResponse
    {
        return $this->updateService($request);
    }
}
